#!/usr/bin/env python3
# -*- coding: utf-8 -*-

"""
PostgreSQL管理工具程序入口
"""

import sys
from src.core.menu import Menu

def main():
    """程序入口函数"""
    menu = Menu()
    menu.run()
    
if __name__ == "__main__":
    try:
        main()
    except KeyboardInterrupt:
        print("\n程序已被用户中断")
        sys.exit(0)
    except Exception as e:
        print(f"程序运行出错: {e}")
        sys.exit(1) 